#ifndef HLSTYLEBUTTON_H
#define HLSTYLEBUTTON_H

#include "utkwidget_export.h"
#include "utkwidgetglobal.h"

#include <QPushButton>
#include <QEvent>

class UTKWIDGET_EXPORT UPushButton : public QPushButton
{
    Q_OBJECT
public:

    explicit UPushButton(const QString text, QWidget* parent = Q_NULLPTR);
    explicit UPushButton(QWidget* parent = Q_NULLPTR);
    ~UPushButton();

    void setButtonType(const ButtonType &type);

    void setRadius(int radius);

protected:
    void paintEvent(QPaintEvent* event) Q_DECL_OVERRIDE;

private:
    ButtonType m_type = ButtonType::ButtonNormal;
    int m_radius = 8;
};

#endif // HLSTYLEBUTTON_H
